13. Prepare DICOM Images for ML Exercise

Prepare DICOM Images for ML Exercise

In this exercise, you'll receive a small set of seven DICOM images. Here, rather than extracting the image itself from the DICOM file, we'll be extracting other attributes that tell us about the image and the patient who is represented in it.

To complete this exercise, create a single dataframe that has the following columns:

  • Patient ID
  • Patient Age (as an integer)
  • Patient Sex (M/F)
  • Imaging Modality
  • Type of finding in the image
  • Number of rows in the image
  • Number of columns in the image

Print the contents of this dataframe.

Note: When you see an attribute listed like "Patient's Age" for a DICOM, this can usually be extracted with pydicom by removing the spaces and special characters, like dcm.PatientAge

Code

If you need a code on the https://github.com/udacity.